<template>
  <view class="">
    Demo页面
    <view @click="goDemo2">跳转到demo2</view>
    <view>------------------</view>
    <view @click="goHome">跳转到首页</view>
  </view>
</template>

<script setup>
  import { ref, computed } from 'vue'
  const goDemo2 = () => {
    uni.navigateTo({ url: '/pages/demo2/demo2?name=张三&age=18&like=篮球' })
  }
  const goHome = () => {
    uni.reLaunch({ url: '/pages/index/index' })
  }
  console.log(getCurrentPages())
</script>

<style lang="scss">

</style>